package com.lantu.wisdom.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lantu.framework.common.utils.PageQueryResult;
import com.lantu.wisdom.dto.GetAllQuestionDTO;
import com.lantu.wisdom.dto.GetQuestionDTO;
import com.lantu.wisdom.dto.SearchQuestionDTO;
import com.lantu.wisdom.model.WQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zch
 * @since 2021-06-15
 */
public interface WQuestionMapper extends BaseMapper<WQuestion> {

    List<GetQuestionDTO> getQuestion(@Param("userId")String userId);

    //List<GetAllQuestionDTO> getAllQuestion(@Param("ss") SearchQuestionDTO question,@Param("pageNo")Integer pageNo,@Param("pageSize")Integer pageSize);
    List<GetAllQuestionDTO> getAllQuestion(@Param("ss") SearchQuestionDTO question,Page page);

}
